package entity

import "ruoyi-go/utils"

// Model alarm_info  报警信息表
type AlarmInfo struct {
	Id                int64           `json:"id" gorm:"primaryKey;column:id" form:"id"`                               //报警信息ID
	PlateNumber       string          `json:"plateNumber" gorm:"plate_number" form:"plateNumber"`                     //车牌号
	ExceptionMessage  string          `json:"exceptionMessage" gorm:"exception_message" form:"exceptionMessage"`      //异常信息
	ExceptionTime     *utils.JsonTime `json:"exceptionTime" gorm:"exception_time" form:"exceptionTime"`               //异常时间
	ExceptionType     string          `json:"exceptionType" gorm:"exception_type" form:"exceptionType"`               //异常类型
	MaterialCode      string          `json:"materialCode" gorm:"material_code" form:"materialCode"`                  //物资编码
	MaterialName      string          `json:"materialName" gorm:"material_name" form:"materialName"`                  //物资名称
	ShippingCompany   string          `json:"shippingCompany" gorm:"shipping_company" form:"shippingCompany"`         //发货公司
	ReceivingCompany  string          `json:"receivingCompany" gorm:"receiving_company" form:"receivingCompany"`      //收货公司
	TransportCompany  string          `json:"transportCompany" gorm:"transport_company" form:"transportCompany"`      //运输公司
	SiteCode          string          `json:"siteCode" gorm:"site_code" form:"siteCode"`                              //站点编码
	SiteName          string          `json:"siteName" gorm:"site_name" form:"siteName"`                              //站点名称
	InOutType         string          `json:"inOutType" gorm:"in_out_type" form:"inOutType"`                          //出入场类型:1入场;2出场
	CreateTime        *utils.JsonTime `json:"createTime" gorm:"create_time" form:"createTime"`                        //创建时间
	UpdateTime        *utils.JsonTime `json:"updateTime" gorm:"update_time" form:"updateTime"`                        //更新时间
	AccountId         string          `json:"accountId" gorm:"account_id" form:"accountId"`                           //账套ID
	AlarmInfoBakOne   string          `json:"alarmInfoBakOne" gorm:"alarm_info_bak_one" form:"alarmInfoBakOne"`       //备用字段1
	AlarmInfoBakTwo   string          `json:"alarmInfoBakTwo" gorm:"alarm_info_bak_two" form:"alarmInfoBakTwo"`       //备用字段2
	AlarmInfoBakThree string          `json:"alarmInfoBakThree" gorm:"alarm_info_bak_three" form:"alarmInfoBakThree"` //备用字段3
}

func (AlarmInfo) TableName() string {
	return "alarm_info"
}

type AlarmInfoPageReq struct {
	Pager
	TimeParams
	Id                int64           `json:"id" gorm:"primaryKey;column:id" form:"id"`                               //报警信息ID
	PlateNumber       string          `json:"plateNumber" gorm:"plate_number" form:"plateNumber"`                     //车牌号
	ExceptionMessage  string          `json:"exceptionMessage" gorm:"exception_message" form:"exceptionMessage"`      //异常信息
	ExceptionTime     *utils.JsonTime `json:"exceptionTime" gorm:"exception_time" form:"exceptionTime"`               //异常时间
	ExceptionType     string          `json:"exceptionType" gorm:"exception_type" form:"exceptionType"`               //异常类型
	MaterialCode      string          `json:"materialCode" gorm:"material_code" form:"materialCode"`                  //物资编码
	MaterialName      string          `json:"materialName" gorm:"material_name" form:"materialName"`                  //物资名称
	ShippingCompany   string          `json:"shippingCompany" gorm:"shipping_company" form:"shippingCompany"`         //发货公司
	ReceivingCompany  string          `json:"receivingCompany" gorm:"receiving_company" form:"receivingCompany"`      //收货公司
	TransportCompany  string          `json:"transportCompany" gorm:"transport_company" form:"transportCompany"`      //运输公司
	SiteCode          string          `json:"siteCode" gorm:"site_code" form:"siteCode"`                              //站点编码
	SiteName          string          `json:"siteName" gorm:"site_name" form:"siteName"`                              //站点名称
	InOutType         string          `json:"inOutType" gorm:"in_out_type" form:"inOutType"`                          //出入场类型
	CreateTime        *utils.JsonTime `json:"createTime" gorm:"create_time" form:"createTime"`                        //创建时间
	UpdateTime        *utils.JsonTime `json:"updateTime" gorm:"update_time" form:"updateTime"`                        //更新时间
	AccountId         string          `json:"accountId" gorm:"account_id" form:"accountId"`                           //账套ID
	AlarmInfoBakOne   string          `json:"alarmInfoBakOne" gorm:"alarm_info_bak_one" form:"alarmInfoBakOne"`       //备用字段1
	AlarmInfoBakTwo   string          `json:"alarmInfoBakTwo" gorm:"alarm_info_bak_two" form:"alarmInfoBakTwo"`       //备用字段2
	AlarmInfoBakThree string          `json:"alarmInfoBakThree" gorm:"alarm_info_bak_three" form:"alarmInfoBakThree"` //备用字段3
}
